﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string Username1 = Request.Form["UserName"];
            string PassWord1 = Request.Form["PassWord"];

            string UserName2 = Request.QueryString["n"];
            string PassWord2 = Request.QueryString["p"];

            if (Username1 != null)
            {
                Response.Write($"Post==> 用户：{Username1}，密码{PassWord1}" + "<br/><br/>");
            }
            else {
                Response.Write($"Get==>用户：{UserName2}，密码{PassWord2}" + "<br/><br/>");
            }

            
           
           




           


        }
    }
}